package com.itheima.ydd.service;

import com.itheima.ydd.common.R;
import com.itheima.ydd.dto.BaseInfoDto;
import com.itheima.ydd.pojo.SysConfig;
import com.itheima.ydd.pojo.SysUser;
import com.itheima.ydd.pojo.UserManager;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface IndexService {

    ResponseEntity<R<BaseInfoDto>> baseInfo();

    ResponseEntity<R<Map<String,String>>> login(SysUser sysUser);

    ResponseEntity<R<List<SysConfig>>> getConfig();

    ResponseEntity<R<UserManager>> profile(String token);
}
